﻿@model System.Linq.IQueryable<KRM.Core.vWebBackHeldItem>
<div class="fieldset">
    <div class="legend"><span>Items Held on Order(@ViewBag.OrderRef)</span></div>
    <div class="row-fluid">
        <div class="span12">
            <a class="btn" style="padding: 0; max-height: 30px; float: right" onclick="ExportCSVWithHead($('#tb-backhelditem'),'HeldItems.csv',$('#tb-backhelditem-head'))">
                <img src="/img/icon-exel.png" style="max-height: 30px">
            </a>
            <table class="table table-bordered table-fix krmtable tbl-selected" id="tb-backhelditem" data-height="200">
                <thead id="tb-backhelditem-head">
                    <tr>
                        <th>SentStockId</th>
                        <th>OrderRef</th>
                        <th>PartId</th>
                        <th>PartName</th>
                        <th>Item Reference</th>
                        <th>Order Item PartId</th>
                        <th>Ware House Name</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr onclick="checkpermissionsend(@item.SentStockId,'@item.OrderRef')">
                            <td>@item.SentStockId</td>
                            <td>@item.OrderRef</td>
                            <td>@item.partId</td>
                            <td>@item.partName</td>
                            <td>@item.ItemReference</td>
                            <td>@item.OrderItemPartId</td>
                            <td>@item.warehouseName</td>
                        </tr>
                    }
                </tbody>
            </table>
            <div class="row-fluid">
                <button type="button" class="btn btn-primary" disabled="disabled" id="btn-senditems" style="float: right" onclick="">Send Item(s)</button>

            </div>
        </div>
    </div>
</div>
